package com.inspire.springboot.domain;

import java.sql.Date;
import java.sql.Timestamp;

/**
 * @author ：inspire
 * @date ：Created in 2022/10/20 10:05
 * @description：
 * @modified By：inspire
 * @version:
 */
public class Person {
    String name;
    String password;
    int age;
    java.sql.Date birthDate;
    String address;
    float salary;
    long IDCard;
    Timestamp SalaryDate;
    float annualBonus;

    public Person(String name, String password, int age, Date birthDate, String address, float salary, long IDCard, Timestamp salaryDate, float annualBonus) {
        this.name = name;
        this.password = password;
        this.age = age;
        this.birthDate = birthDate;
        this.address = address;
        this.salary = salary;
        this.IDCard = IDCard;
        SalaryDate = salaryDate;
        this.annualBonus = annualBonus;
    }

    public Person(String name, int age, Date birthDate, String address, float salary, long IDCard, float annualBonus) {
        this.name = name;
        this.age = age;
        this.birthDate = birthDate;
        this.address = address;
        this.salary = salary;
        this.IDCard = IDCard;
        this.annualBonus = annualBonus;
    }

    public String toString2() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", birthDate=" + birthDate +
                ", address='" + address + '\'' +
                ", salary=" + salary +
                ", IDCard=" + IDCard +
                ", annualBonus=" + annualBonus +
                '}';
    }

    public Person(String name, int age, String address, float salary, long IDCard, float annualBonus) {
        this.name = name;
        this.age = age;
        this.address = address;
        this.salary = salary;
        this.IDCard = IDCard;
        this.annualBonus = annualBonus;
    }

    public String toString3() {
        return "Person{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", address='" + address + '\'' +
                ", salary=" + salary +
                ", IDCard=" + IDCard +
                ", annualBonus=" + annualBonus +
                '}';
    }

    public Person(String name, int age) {
        this.name = name;
        this.age = age;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public int getAge() {
        return age;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Date getBirthDate() {
        return birthDate;
    }

    public void setBirthDate(Date birthDate) {
        this.birthDate = birthDate;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public float getSalary() {
        return salary;
    }

    public void setSalary(float salary) {
        this.salary = salary;
    }

    public long getIDCard() {
        return IDCard;
    }

    public void setIDCard(long IDCard) {
        this.IDCard = IDCard;
    }

    public Timestamp getSalaryDate() {
        return SalaryDate;
    }

    public void setSalaryDate(Timestamp salaryDate) {
        SalaryDate = salaryDate;
    }

    public float getAnnualBonus() {
        return annualBonus;
    }

    public void setAnnualBonus(float annualBonus) {
        this.annualBonus = annualBonus;
    }

    @Override
    public String toString() {
        return "Person{" +
                "name='" + name + '\'' +
                ", password='" + password + '\'' +
                ", age=" + age +
                ", birthDate=" + birthDate +
                ", address='" + address + '\'' +
                ", salary=" + salary +
                ", IDCard=" + IDCard +
                ", SalaryDate=" + SalaryDate +
                ", annualBonus=" + annualBonus +
                '}';
    }

    public void fun01(){
        int a=1;
        if(a==1){
            System.out.println("--------");
        }
    }

    public void fun02(int a){
        if(a==1){
            System.out.println("--------");
        }
    }
}
